package com.oocl.o2o.admin.dao;

import java.util.List;

import com.oocl.o2o.admin.entity.Merchant;

public interface MerchartDao {
	/**
	 * 
	 * @param uname
	 * @return
	 */
	public Merchant findByName(String uname);
	
	/**
	 * 
	 * @param status
	 * @return
	 */
	public List<Merchant> findByStatus(int status);
	
	/**
	 * 
	 * @return
	 */
	public List<Merchant>findAll();
	
	/**
	 * 
	 * @param merchant
	 * @return
	 */
	public Merchant add(Merchant merchant);
	
	/**
	 * 
	 * @param merchant
	 * @return
	 */
	public Merchant update(Merchant merchant);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public Merchant findById(String id);
}
